<!DOCTYPE HTML>
<html>
<head>
  <meta charset="utf-8">
  
  <title>解决yum update 失败 | Wentao&#39;s Blog</title>

  
  <meta name="author" content="wentao">
  

  
  <meta name="description" content="执行yum update以后遇到了如下的问题

&amp;quot;Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again&amp;quot;

修改下">
  

  
  
  <meta name="keywords" content="linux,yum">
  

  <meta id="viewport" name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">

  <meta property="og:title" content="解决yum update 失败"/>

  <meta property="og:site_name" content="Wentao&#39;s Blog"/>

  
  <meta property="og:image" content="/favicon.ico"/>
  

  <link href="/favicon.ico" rel="icon">
  <link rel="alternate" href="/atom.xml" title="Wentao&#39;s Blog" type="application/atom+xml">
  <link rel="stylesheet" href="/css/style.css" media="screen" type="text/css">
</head>


<body>
<div class="blog">
  <div class="content">

    <header>
  <div class="site-branding">
    <h1 class="site-title">
      <a href="/">Wentao&#39;s Blog</a>
    </h1>
    <p class="site-description"></p>
  </div>
  <nav class="site-navigation">
    <ul>
      
        <li><a href="/">主页</a></li>
      
        <li><a href="/archives">归档</a></li>
      
    </ul>
  </nav>
</header>

    <main class="site-main posts-loop">
    <article>

  
    
    <h3 class="article-title"><span>解决yum update 失败</span></h3>
    
  

  <div class="article-top-meta">
    <span class="posted-on">
      <a href="/2011/11/11/how-to-fix-yum-update/" rel="bookmark">
        <time class="entry-date published" datetime="2011-11-11T04:40:00.000Z">
          2011-11-11
        </time>
      </a>
    </span>
  </div>


  

  <div class="article-content">
    <div class="entry">
      
        <p>执行yum update以后遇到了如下的问题</p>
<blockquote>
<p>&quot;Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again&quot;</p>
</blockquote>
<p>修改下面的文件:</p>
<blockquote>
<p>/etc/yum.repos.d/fedora.repo 和 /etc/yum.repos.d/fedora-updates.repo.</p>
</blockquote>
<p>修改方式为取消注释掉的 baseurl即把前面＃删掉<br>
然后加上注释到 mirrorlist 即加上＃，保存.</p>
<p>然后就解决了.</p>

      
    </div>

  </div>

  <div class="article-footer">
    <div class="article-meta pull-left">

    
      

    <span class="post-categories">
      <i class="icon-categories"></i>
        <a href="/categories/Soft/">Soft</a>
    </span>
    

    
    

    <span class="post-tags">
      <i class="icon-tags"></i>
        <a href="/tags/linux-yum/">linux,yum</a>
    </span>
    

    </div>

    
  </div>
</article>

  
	<div id="comment">
	
	
	<!-- 多说评论框 start -->
	 <div class="ds-thread" data-thread-key="/2011/11/11/how-to-fix-yum-update/" data-title="解决yum update 失败" data-url="http://wentao.org/2011/11/11/how-to-fix-yum-update/"></div>
	<!-- 多说评论框 end -->
	<!-- 多说公共JS代码 start (一个网页只需插入一次) -->
	<script type="text/javascript">
	var duoshuoQuery = {short_name:"wentao"};
	  (function() {
	    var ds = document.createElement('script');
	    ds.type = 'text/javascript';ds.async = true;
	    ds.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + '//static.duoshuo.com/embed.js';
	    ds.charset = 'UTF-8';
	    (document.getElementsByTagName('head')[0] 
	     || document.getElementsByTagName('body')[0]).appendChild(ds);
	  })();
	  </script>
	<!-- 多说公共JS代码 end -->
	
	</div>




    </main>

    <footer class="site-footer">
  <p class="site-info">
    Proudly powered by <a href="https://hexo.io/" target="_blank">Hexo</a> and
    Theme by <a href="https://github.com/CodeDaraW/Hacker" target="_blank">Hacker</a>
    </br>
    
    &copy; 2016 wentao
    
  </p>
</footer>
    
  </div>
</div>
</body>
</html>